// 宣臻logo svg动画
$(function() {
		$(".label").each(function() {
			var _this = $(this);
			$(this).mouseover(function(){
				// console.log("111")
				$(this).hide();
				$(this).next().show();
			})
			$(".label-content").mouseout(function(){
				// console.log("111")
				_this.show();
				$(this).hide();
			})
		})

		var smallCirWrap = $(".small-cir").children();
		var n = 2,i = 0,m=0;
		function showlabel() {
			$(".all-label").eq(m).velocity({opacity:1},500);
			m++;
		}
		function showRec() {
			$(".rec-wrap").children().eq(i).velocity({opacity:1},500);
			i++;
		}
		// showRec()
		 window.moveSeSvg = function() {
		 	console.log("动画开始")
		 	
			var showLab = setInterval(showlabel,250);
			$(".cir1").velocity({opacity: 1},500)
			$(".circle1").velocity({strokeDashoffset:0},{duration:900});
			$(".cir2").velocity({opacity: 1},{duration:500,delay: 200})
			// var showCir = setInterval(showSmallCir,500);
			$(".circle2").velocity({strokeDashoffset:0},{duration:900,delay:200});
			$(".cir3").velocity({opacity: 1},{duration:500,delay: 450})
			$(".circle3").velocity({strokeDashoffset:0},{duration:800,delay:600});
			$(".cir4").velocity({opacity: 1},{duration:500,delay: 750})

			$(".circle4").velocity({strokeDashoffset:0},{duration:900,delay:850});
			$(".cir5").velocity({opacity: 1},{duration:500,delay: 1100})

			$(".circle5").velocity({strokeDashoffset:0},{duration:900,delay:1200});
			$(".cir6").velocity({opacity: 1},{duration:500,delay: 1500})

			$(".circle6").velocity({strokeDashoffset:0},{duration:1000,delay:1500});
			$(".cir7").velocity({opacity: 1},{duration:500,delay: 1800})
			$(".circle7").velocity({strokeDashoffset:0},{duration:900,delay:1900,complete:function() {
				// clearInterval(showLab);
			}})
			$(".second-circle").velocity({strokeDashoffset:0},{duration:2000,delay: 950,complete:function() {

			}})
			$(".third-circle").velocity({strokeDashoffset:0},{duration:1700,delay: 1000,complete:function() {
				
				
			}})
			$(".forth-circle").velocity({opacity:1},{duration:1700,delay: 1000,complete:function() {
					// clearInterval(showRec)
					
					
			}})
			$(".rec-wrap").velocity({opacity: 1},{duration:100,delay: 900,complete:function() {
				setInterval(showRec,60)
				$(".people").velocity({opacity:1},{duration:3000,delay: 100,complete:function() {
					$(".circle-wrapper").addClass("move-circle")
					 clearInterval(showRec)
				}})

			}})
			$(".fifth-circle").velocity({opacity:1},{duration:1700,delay: 1000})


		 }
		
		 
})